package io;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class FOSDemo {
    public static void main(String[] args) throws IOException {
        File file = new File("fos.dat");
        FileOutputStream fos = new FileOutputStream(file);
       /* fos.write(1);
        fos.write(2);*/
        //fos.write(3);
        fos.write(256);
        System.out.println("写完了");
        fos.close();

    }
}